package com.hyc.controller;

import com.hyc.service.UIdGenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UIdGenController {
    @Autowired
    private UIdGenService uIdGenService;

    @GetMapping("/getUid")
    public Long getUid() {
        return uIdGenService.generateUid();
    }
}
